<?php
class Image_popup_Controller extends Template_Controller {
	
	public $mr;
	public $search;
	public $template = 'admin_popup/index';
	
    public function __construct()
    {
        parent::__construct();
        
		
    }
    
	public function __call($method, $arguments)
	{
		// Disable auto-rendering
		$this->auto_render = FALSE;
	}
	
    public function index()
    {
		
		$this->template->content = new View('admin_popup/search_popup');
    }
    public function show($id)
    {
		
		$this->template->content = new View('product/image_popup');
		$mr  = ORM::factory('product',$id)->as_array(false);
		$this->template->content->mr  = $mr;
    }  
}
?>